package com.zut.fitness.service.impl;


import com.zut.fitness.service.ICommodityService;
import com.zut.fitness.mapper.CommodityMapper;
import com.zut.fitness.pojo.Commodity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品列表Service业务层处理
 * 
 * @author yuanML2018
 * @date 2025-01-04
 */
@Service
public class CommodityServiceImpl implements ICommodityService
{
    @Autowired
    private CommodityMapper commodityMapper;

    /**
     * 查询商品列表
     * 
     * @param id 商品列表主键
     * @return 商品列表
     */
    @Override
    public Commodity selectCommodityById(Long id)
    {
        return commodityMapper.selectCommodityById(id);
    }

    /**
     * 查询商品列表列表
     * 
     * @param commodity 商品列表
     * @return 商品列表
     */
    @Override
    public List<Commodity> selectCommodityList(Commodity commodity)
    {
        return commodityMapper.selectCommodityList(commodity);
    }


}
